﻿
using SqlSugar;
using System.Security.Principal;
using System;
using SqlSugarTests.WebAPI.Model;

namespace S.EarTag.Domain.Model
{
    /// <summary>
    /// 羊只戴标表
    /// </summary>
    [SugarTable("MarkModel")]
    public class MarkModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int MarkId { get; set; }

        /// <summary>
        /// 耳标下拉框
        /// </summary>
        [SugarColumn(ColumnName = "EarTag")]
        public string? EarTag { get; set; }

        /// <summary>
        /// 当前电子耳号
        /// </summary>
        [SugarColumn(ColumnName = "EITag")]
        public string? EITag { get; set; }
        /// <summary>
        /// 新电子耳号
        /// </summary>
        [SugarColumn(ColumnName = "NewEITag")]
        public string? NewEITag { get; set; }

        /// <summary>
        /// 佩戴原因
        /// </summary>
        [SugarColumn(ColumnName = "WearId")]
        public WearItem WearId { get; set; }

        /// <summary>
        /// 戴标状态
        /// </summary>
        [SugarColumn(ColumnName = "MarkState")]
        public string? MarkState { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "CreateBy")]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTimeOffset CreateDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [SugarColumn(ColumnName = "UpdateBy")]
        public string UpdateBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "UpdateDate")]
        public string? UpdateDate { get; set; }
        /// <summary>
        /// 使用状态
        /// </summary>
        [SugarColumn(ColumnName = "UseState")]
        public string? UseState { get; set; }
    }
}
